package org.bsplus.util.pagination;

import com.google.inject.internal.Collections2;
import java.io.Serializable;
import java.util.Collections;
import java.util.List;

public class ResultPage<T> implements Serializable
{
    private List<T> results;
    private int total;

    public ResultPage()
    {
    }

    public ResultPage(List<T> results, int total)
    {
        this.results = results;
        this.total = total;
    }

    /**
     * @return the results
     */
    public List<T> getResults()
    {
        return results;
    }

    /**
     * @return the total
     */
    public int getTotal()
    {
        return total;
    }

    /**
     * @param results the results to set
     */
    public void setResults(List<T> results)
    {
        this.results = results;
    }

    /**
     * @param total the total to set
     */
    public void setTotal(int total)
    {
        this.total = total;
    }
}
